//
//  TSCityCommentCell.m
//  TaShuo
//
//  Created by N-X on 2018/1/17.
//  Copyright © 2018年 MRNAN. All rights reserved.
//  城市评论cell

#import "TSCityCommentCell.h"
#import "SDWeiXinPhotoContainerView.h"
#import "TSCityCommentPresenter.h"

NSString * const kCityCommentID = @"kCityCommentID";

@interface TSCityCommentCell()
@property (weak, nonatomic) IBOutlet UILabel *contentLabel;
@property (weak, nonatomic) IBOutlet SDWeiXinPhotoContainerView *photoContainerView;
@property (weak, nonatomic) IBOutlet UIButton *likeCountButton;
@property (weak, nonatomic) IBOutlet UIButton *commentButton;
@end

@implementation TSCityCommentCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.photoContainerView.nx_height = self.presenter.middleHeight;
}

- (void)setPresenter:(TSCityCommentPresenter *)presenter
{
    _presenter = presenter;
    
    self.contentLabel.text = presenter.descriptionText;
    self.photoContainerView.picPathStringsArray = presenter.images;
}

#pragma mark - 底部 评论，点赞之类的点击业务处理

- (IBAction)likeButtonClick:(id)sender {
    
}

- (IBAction)commentButtonClick:(id)sender {
    
}
// 领券点击处理
- (IBAction)vouchersButtonClick:(id)sender {
    
}

- (IBAction)enterShopButtonClick:(id)sender {
    
}

@end
